package com.qigao.mall.web.vo.admin.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @Date:2017/12/25 0025 14:46
 * @Author lu.dong
 * @Description：
 **/
@Data
@NoArgsConstructor
@ApiModel(value = "角色操作实体 SysRoleResourceVo")
public class SysRoleResourceVo {
    @NotEmpty(message = "角色代码不能为空")
    @Length(min = 1, max = 32, message = "角色代码长度不能超过32")
    @ApiModelProperty(value = "角色代码", required = true)
    private String roleCode;
    @NotEmpty(message = "资源代码不能为空")
    @Length(min = 1, max = 32, message = "资源代码长度不能超过32")
    @ApiModelProperty(value = "资源代码", required = true)
    private String sourceNo;
}
